<?php
if ($PID == 390 || $PID == 391) {
	$GetEdit = $GLOBALS['MYD']->db_array("SELECT smb_ID, smb_Name, name
				FROM staff_members 
				LEFT OUTER JOIN main_offices ON office_number = smb_Domain
				WHERE smb_ID = {$GetTasks[$i]['stk_RegID']}
				GROUP BY smb_ID");
} elseif ($PID == 392 || $PID == 393 || $PID == 394) {
	//$GLOBALS['MYT']->db_query("UPDATE systemoffice.staff_members SET smb_Domain = {$_POST['smv_Domain']} WHERE smb_ID = {$_POST['MemberID']}";
$GetEdit = $GLOBALS['MYD']->db_array("SELECT smb_ID, smb_Name, name
				FROM staff_members 
				INNER JOIN staff_move ON smv_UserID = smb_ID
				LEFT OUTER JOIN main_offices ON office_number = smv_DomainDst
				WHERE smv_ID = {$GetTasks[$i]['stk_RegID']}
				GROUP BY smv_ID");
} elseif ($PID == 395 || $PID == 396) {
	$GetEdit = $GLOBALS['MYD']->db_array("SELECT smb_ID, smb_Name, name
				FROM staff_members 
				LEFT OUTER JOIN main_offices ON office_number = smb_Domain
				WHERE smb_ID = {$GetTasks[$i]['stk_RegID']}
				GROUP BY smb_ID");
} elseif ($PID == 397 || $PID == 398 || $PID == 399) {
	$GetEdit = $GLOBALS['MYD']->db_array("SELECT smb_ID, smb_Name, name
				FROM timeclock_staffoff
				INNER JOIN staff_members ON tsv_Member = smb_ID
				LEFT OUTER JOIN main_offices ON office_number = smb_Domain
				WHERE tsv_ID = {$GetTasks[$i]['stk_RegID']}
				GROUP BY tsv_ID");
}